/*
 * @Author: dingchao v_dingchao10.js@chinatelecom.cn
 * @Date: 2023-10-19 10:37:28
 * @LastEditors: dingchao v_dingchao10.js@chinatelecom.cn
 * @LastEditTime: 2023-10-25 19:55:59
 * @FilePath: \demo_voice\src\router\index.js
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/aiModel/aiModel.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/voice',
    name: 'voice',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/voice.vue')
  },
  {
    path: '/aiModel',
    name: 'aiModel',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/aiModel/aiModel.vue')
  },
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
